1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.Collection ; 22 import java.util.Collections ; 23 import javax.jmi.reflect.ConstraintViolationException; 24 import org.netbeans.jmi.javamodel.Type; 25 import org.netbeans.mdr.storagemodel.StorableObject; 26 27 31 public abstract class LiteralImpl extends ExpressionImpl { 32 protected Type type; 33 34 35 public LiteralImpl(StorableObject o) { 36 super(o); 37 } 38 39 43 public Type getType() { 44 return type; 45 } 46 47 52 public void setType(Type newValue) { 53 throw new ConstraintViolationException(this, null, "Literal type is readonly."); } 55 } 56 | Popular Tags |