terp - the Codemesh Modular
Template Interpreter v1.3.337

com.codemesh.terp.data
Class ProcArch

java.lang.Object
  extended by com.codemesh.terp.data.ProcArch
All Implemented Interfaces:
Named, TerpSerializable, ProcArchConstants, java.io.Serializable, java.lang.Comparable<ProcArch>

public final class ProcArch
extends java.lang.Object
implements java.lang.Comparable<ProcArch>, TerpSerializable, Named, ProcArchConstants

A processor architecture.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.codemesh.terp.data.ProcArchConstants
FAMILY_ALPHA, FAMILY_AMD64, FAMILY_ARM, FAMILY_ARM_BE, FAMILY_ARM_LE, FAMILY_IA64, FAMILY_MIPS, FAMILY_MIPS_BE, FAMILY_MIPS_LE, FAMILY_PARISC, FAMILY_PARISCV2, FAMILY_PPC, FAMILY_PPC_BE, FAMILY_PPC_LE, FAMILY_PPC64, FAMILY_S390, FAMILY_S390X, FAMILY_SH, FAMILY_SH_BE, FAMILY_SH_LE, FAMILY_SPARC, FAMILY_SPARCV9, FAMILY_SUPERH, FAMILY_SUPERH_BE, FAMILY_SUPERH_LE, FAMILY_UNIVERSAL, FAMILY_UNIVERSAL_32, FAMILY_UNIVERSAL_64, FAMILY_UNKNOWN, FAMILY_X86
 
Method Summary
 java.lang.StringBuilder appendToExpression(java.lang.StringBuilder buffer)
          Appends the object's terp expression to the buffer.
 int compareTo(ProcArch o)
           
 boolean equals(java.lang.Object obj)
           
static java.util.Collection<ProcArch> fromHost()
           
static ProcArch fromMap(java.util.Map<java.lang.String,java.lang.Object> data)
           
static ProcArch fromOsArch(ProcArch arch, java.lang.String code)
           
static ProcArch fromOsArch(java.lang.String code)
           
static ProcArch fromString(java.lang.String code)
           
 java.lang.Integer getBits()
           
 java.lang.String getCode()
           
 java.lang.String getEndian()
           
 java.lang.String getFamily()
           
 java.lang.String getName()
          Returns the named object's name.
 int hashCode()
           
 void setBits(java.lang.Integer bits)
           
 void setCode(java.lang.String code)
           
 void setEndian(java.lang.String endian)
           
 void setFamily(java.lang.String family)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

appendToExpression

public java.lang.StringBuilder appendToExpression(java.lang.StringBuilder buffer)
Description copied from interface: TerpSerializable
Appends the object's terp expression to the buffer.

Specified by:
appendToExpression in interface TerpSerializable
Parameters:
buffer - the buffer accumulating terp expressions.
Returns:
the buffer.

fromHost

public static java.util.Collection<ProcArch> fromHost()

fromOsArch

public static ProcArch fromOsArch(java.lang.String code)

fromOsArch

public static ProcArch fromOsArch(ProcArch arch,
                                  java.lang.String code)

fromString

public static ProcArch fromString(java.lang.String code)

fromMap

public static ProcArch fromMap(java.util.Map<java.lang.String,java.lang.Object> data)

setBits

public void setBits(java.lang.Integer bits)

getBits

public java.lang.Integer getBits()

setEndian

public void setEndian(java.lang.String endian)

getEndian

public java.lang.String getEndian()

setCode

public void setCode(java.lang.String code)

getCode

public java.lang.String getCode()

setFamily

public void setFamily(java.lang.String family)

getFamily

public java.lang.String getFamily()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()
Description copied from interface: Named
Returns the named object's name.

Specified by:
getName in interface Named
Returns:
the name.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(ProcArch o)
Specified by:
compareTo in interface java.lang.Comparable<ProcArch>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

terp - the Codemesh Modular
Template Interpreter v1.3.337

Copyright © 2008-2016 by Codemesh, Inc. All Rights Reserved.